const cp = require("child_process")

let max = 101

for (let i = 1; i <= 101; i++) {
    let str = String(i).padStart(3, '0')
    console.log('str->', str);
    try {
        let cmd = `C:/Program Files (x86)/MKVToolNix/mkvmerge.exe --ui-language zh_CN --priority lower --output E:/glgs3/glgsE${str} 2160p .mkv --language 0:und --display-dimensions 0:2880x2160 --language 1:jv --track-name 1:jp --default-track-flag 1:no --language 2:zh --track-name 2:ch --default-track-flag 2:yes ( E:/glgs/glgsE${str} 2160p.mkv ) --track-order 0:0,0:1,0:2`
        let proc = cp.exec(cmd)
        proc.on('error', (err) => {
            console.error(err);
        });
        proc.on('exit', (code) => {
            console.log('Exit code:', code);
        });
    } catch (error) {
        // console.log(error)
    }
}


